/*
 * @Description: 
 * @Author: wangqi
 * @Date: 2021-04-15 22:11:29
 * @LastEditTime: 2021-04-16 00:26:20
 */
const path = require('path');
const webpack = require('webpack');

module.exports = {
    // development  production
    mode: 'production',
    entry: {
        jquery: ['jquery'],
    },
    output: {
        filename: '[name].js',
        path: path.join(__dirname, './dll/'),
        library: "[name]_[hash]",
        // libraryTarget: 'val',
    },

    plugins: [
        new webpack.DllPlugin({
            name: "[name]_[hash]",
            path: path.join(__dirname, "./dll/vendor-manifest.json"),
        })
    ]
}